翻訳と辞書
Words near each other
・ Bridge of Weir Railway
・ Bridge of Weir railway station
・ Bridge on the River Wye
・ Bridge over Fountain Creek
・ Bridge over Fountain Creek (Manitou Avenue)
・ Bridge over Green River
・ Bridge over Institute Street
・ Bridge over North Fork of Roanoke River
・ Bridge over Powder River
・ Bridge Over the Elbe
・ Bridge over Troubled Water
・ Bridge over Troubled Water (Paul Desmond album)
・ Bridge Over Troubled Water (Peggy Lee album)
・ Bridge over Troubled Water (song)
・ Bridge Pass
Bridge pattern
・ Bridge Pavilion
・ Bridge piercing
・ Bridge pin
・ Bridge plate
・ Bridge Plaza, Brooklyn
・ Bridge probabilities
・ Bridge program (higher education)
・ Bridge Protocol Data Unit
・ Bridge Publications
・ Bridge Publications (Scientology)
・ Bridge Publications (UK)
・ Bridge Pā
・ Bridge rail
・ Bridge Real Ferdinando sul Garigliano


Dictionary Lists
翻訳と辞書 辞書検索 [ 開発暫定版 ]
スポンサード リンク

Bridge pattern : ウィキペディア英語版
Bridge pattern
The bridge pattern is a design pattern used in software engineering which is meant to ''"decouple an abstraction from its implementation so that the two can vary independently"''.〔Gamma, E, Helm, R, Johnson, R, Vlissides, J: ''Design Patterns'', page 151. Addison-Wesley, 1995〕 The ''bridge'' uses encapsulation, aggregation, and can use inheritance to separate responsibilities into different classes.
When a class varies often, the features of object-oriented programming become very useful because changes to a program's code can be made easily with minimal prior knowledge about the program. The bridge pattern is useful when both the class and what it does vary often. The class itself can be thought of as the ''implementation'' and what the class can do as the ''abstraction''. The bridge pattern can also be thought of as two layers of abstraction.
When there is only one fixed implementation, this pattern is known as the Pimpl idiom in the C++ world.
The bridge pattern is often confused with the adapter pattern. In fact, the bridge pattern is often implemented using the class adapter pattern, e.g. in the Java code below.
Variant: The implementation can be decoupled even more by deferring the presence of the implementation to the point where the abstraction is utilized.
==Structure==

; Abstraction (abstract class)
: defines the abstract interface
: maintains the Implementor reference.
; RefinedAbstraction (normal class)
: extends the interface defined by Abstraction
; Implementor (interface)
: defines the interface for implementation classes
; ConcreteImplementor (normal class)
: implements the Implementor interface

抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)
ウィキペディアで「Bridge pattern」の詳細全文を読む



スポンサード リンク
翻訳と辞書 : 翻訳のためのインターネットリソース

Copyright(C) kotoba.ne.jp 1997-2016. All Rights Reserved.